package org.dromara.wms.domain.bo;

import org.dromara.wms.domain.WmsWarehouse;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;

/**
 * 仓库管理业务对象 wms_warehouse
 *
 * @author wenrui
 * @date 2024-03-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = WmsWarehouse.class, reverseConvertGenerate = false)
public class WmsWarehouseBo extends BaseEntity {

    /**
     * 仓库ID
     */
    @NotNull(message = "仓库ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 库位上级
     */
    @NotBlank(message = "库位上级不能为空", groups = { AddGroup.class, EditGroup.class })
    private String parentId;

    /**
     * 仓库名称
     */
    @NotBlank(message = "仓库名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 位置
     */
    private String location;

    /**
     * 面积
     */
    private BigDecimal acreage;

    /**
     * 负责人
     */
    private Long userId;

    /**
     * 状态
     */
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
